package cn.ddiancan.xddcloud.psc.todo.domain;

import java.io.Serializable;
import java.util.Date;

import cn.ddiancan.xddcloud.common.context.XddCloudContextUtils;
import cn.ddiancan.xddcloud.common.entity.BaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TodoVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String todoId;

    @Schema(description = "批次号")
    private String batchNo;

    @Schema(description = "任务名称")
    private String taskName;

    @Schema(description = "任务类型,扩展字段，根据业务类型匹配")
    private Integer todoType;

    @Schema(description = "应用名称")
    private String applicationName = XddCloudContextUtils.getApplication();

    @Schema(description = "任务内容")
    private String content;

    @Schema(description = "提交人")
    private String submiter;

    @Schema(description = "审批人")
    private String approver;

    @Schema(description = "是否完成")
    private Integer done;

    @Schema(description = "待办状态")
    private Integer todoStatus;

    @Schema(description = "跳转链接")
    private String jumpUrl;

    @Schema(description = "跳转类型_blank, _self")
    private String jumpType;

    @Schema(description = "待办过期时间")
    private Date endTime;
}
